package com.zuoyi.sqlSession;

import com.zuoyi.pojo.Configuration;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.util.List;

public interface SqlSession {
    public <E> List<E> selectList(String statementId, Object... params) throws Exception;

    public <T> T selectOne(String statementId, Object... params) throws Exception;

    /**
     * 更新user
     */
    public Integer update(String statementId, Object... params) throws Exception;

    /**
     *删除user
     */
    public Integer delete(String statementId, Object... params) throws Exception;
    //为Dao接口生成代理实现类

    /**
     * 添加
     */
    public Integer insert(String statementId, Object... params) throws Exception;
    public <T> T getMapper(Class<?> mapperClass);
 }
